
<%@ page import="org.bjou.ShiroRole" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="pertho">
  <g:set var="entityName" value="${message(code: 'shiroRole.label', default: 'ShiroRole')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="twelve columns">
        <div class="box_c">
          <div class="box_c_heading cf">
            <p><g:message code="default.show.label" args="[entityName]" /></p>
          </div>
          <div class="box_c_content">
            <!-- start -->
            <div id="show-shiroRole" class="content scaffold-show" role="main">
              <g:if test="${flash.message}">
                <div class="message" role="status">${flash.message}</div>
              </g:if>
              <ol class="property-list shiroRole">

                <g:if test="${shiroRoleInstance?.name}">
                  <li class="fieldcontain">
                    <span id="name-label" class="property-label"><g:message code="shiroRole.name.label" default="Name" /></span>

                    <span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${shiroRoleInstance}" field="name"/></span>

                  </li>
                </g:if>

                <g:if test="${shiroRoleInstance?.roleDscp}">
                  <li class="fieldcontain">
                    <span id="roleDscp-label" class="property-label"><g:message code="shiroRole.roleDscp.label" default="Role Dscp" /></span>

                    <span class="property-value" aria-labelledby="roleDscp-label"><g:fieldValue bean="${shiroRoleInstance}" field="roleDscp"/></span>

                  </li>
                </g:if>
                
                 <!--  
                <g:if test="${shiroRoleInstance?.roleType}">
                  <li class="fieldcontain">
                    <span id="roleType-label" class="property-label"><g:message code="shiroRole.roleType.label" default="Role Type" /></span>

                    <span class="property-value" aria-labelledby="roleType-label"><g:fieldValue bean="${shiroRoleInstance}" field="roleType"/></span>

                  </li>
                </g:if>

               
                <g:if test="${shiroRoleInstance?.permissions}">
                  <li class="fieldcontain">
                    <span id="permissions-label" class="property-label"><g:message code="shiroRole.permissions.label" default="Permissions" /></span>

                    <span class="property-value" aria-labelledby="permissions-label"><g:fieldValue bean="${shiroRoleInstance}" field="permissions"/></span>

                  </li>
                </g:if>
                

                <g:if test="${shiroRoleInstance?.users}">
                  <li class="fieldcontain">
                    <span id="users-label" class="property-label"><g:message code="shiroRole.users.label" default="Users" /></span>

                  <g:each in="${shiroRoleInstance.users}" var="u">
                    <span class="property-value" aria-labelledby="users-label"><g:link controller="shiroUser" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></span>
                  </g:each>

                  </li>
                </g:if>
                 -->

              </ol>
              <g:form>
                <fieldset class="buttons">
                  <g:hiddenField name="id" value="${shiroRoleInstance?.id}" />
                 
                  <g:if test="${shiroRoleInstance?.roleType!=1}">
                  <g:actionSubmit class="gh_button icon danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
                  </g:if>
                  <g:link class="gh_button list" action="list">返回角色列表</g:link>
           
                </fieldset>
              </g:form>
              <!-- end -->
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
